1
node
This Node.js script defines an asynchronous function asyncF that returns a string value. It then calls asyncF, chaining a .then method to log the result and a .catch method to handle any errors. This is an example how to use an async function in a sync context.